package mode.observer.code;

/**
 * 微信用户类，具体的观察者
 *
 * @author xjx
 * @date 2023/7/27 14:31
 */
public class WeixinUser implements Observer {
    private String name;

    WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "接收到了消息(观察到了):" + message);
    }
}
